<?php
$labels = array(
	'name' => 'Portfolio',
	'singular_name' => 'Portfolio',
	'add_new' => 'Add New',
	'add_new_item' => 'Add New Portfolio',
	'edit_item' => 'Edit Portfolio',
	'new_item' => 'New Portfolio',
	'all_items' => 'All Portfolio',
	'view_item' => 'View Portfolio',
	'search_items' => 'Search Portfolio',
	'not_found' =>  'No Portfolio found',
	'not_found_in_trash' => 'No Portfolio found in Trash', 
	'parent_item_colon' => '',
	'menu_name' => 'Portfolio'
);

$args = array(
	'labels' => $labels,
	'public' => true,
	'exclude_from_search' => false,
	'publicly_queryable' => true,
	'show_ui' => true, 
	'show_in_menu' => true, 
	'query_var' => true,
	'rewrite' => array( 'slug' => 'portfolio' ),
	'capability_type' => 'post',
	'has_archive' => true, 
	'hierarchical' => false,
	'menu_position' => null,
	'supports' => array( 'title', 'thumbnail', 'page-attributes' ),
    'taxonomies' => array('post_tag')
);
register_post_type( 'portfolio', $args );

$labels = array(
	'name'              => _x( 'Categories', 'taxonomy general name' ),
	'singular_name'     => _x( 'Categories', 'taxonomy singular name' ),
	'search_items'      => __( 'Search Categories' ),
	'popular_items'     => __( 'Popular Categories' ),
	'all_items'         => __( 'All Categories' ),
	'parent_item'       => __( 'Parent Categories' ),
	'parent_item_colon' => __( 'Parent Categories:' ),
	'edit_item'         => __( 'Edit Category' ),
	'update_item'       => __( 'Update Category' ),
	'add_new_item'      => __( 'Add New Category' ),
	'new_item_name'     => __( 'New Category Name' ),
	'menu_name'         => __( 'Categories' ),
);
$args = array(
	'hierarchical'      => true,
	'labels'            => $labels,
	'show_ui'           => true,
	'show_admin_column' => true,
	'query_var'         => true,
	'rewrite'           => array( 'slug' => 'portfolio_category' ),
);
register_taxonomy( 'portfolio_category', array( 'portfolio' ), $args );


